package logic

import (
	"context"

	"go-exp/zero/rpc/permission/internal/svc"
	"go-exp/zero/rpc/permission/pb/permission"

	"github.com/zeromicro/go-zero/core/logx"
)

type AssignPermissionToRoleLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewAssignPermissionToRoleLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AssignPermissionToRoleLogic {
	return &AssignPermissionToRoleLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

// 资源与权限绑定
func (l *AssignPermissionToRoleLogic) AssignPermissionToRole(in *permission.AssignPermissionToRoleRequest) (*permission.OperationResponse, error) {
	// todo: add your logic here and delete this line

	return &permission.OperationResponse{}, nil
}
